<?php

namespace Tests\Browser\Pages\App\Activity\Bonus;


use App\Models\Store\Store;
use Tests\Browser\Pages\Page;

class BonusRecordPage extends Page
{
    protected $store;

    public function __construct(Store $store)
    {
        $this->store = $store;
    }

    /**
     * Get the URL for the page.
     *
     * @return string
     */
    public function url()
    {
        $qs = http_build_query(['store_id' => $this->store->id]);

        return "wx-system/?$qs#/lucky-money";
    }

    /**
     * Get the element shortcuts for the page.
     *
     * @return array
     */
    public function elements()
    {
        return [
            '@element' => '#selector',
        ];
    }
}
